#define COPYRIGHT " TV grabber voor Nederland \n\n Copyright (C) 2007-2011  Lars Teunissen "
#define GPL "\n\n\n Tv_grab_nl_C is free software: you can redistribute it and/or modify\n it under the terms of the GNU General Public License as published by\n the Free Software Foundation, either version 3 of the License, or\n any later version.\n\n This program is distributed in the hope that it will be useful,\n but WITHOUT ANY WARRANTY; without even the implied warranty of\n MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n GNU General Public License for more details.\n\n You should have received a copy of the GNU General Public License\n along with this program.  If not, see <http://www.gnu.org/licenses/>.\n"


#define NAAM "tv_grab_nl_C"
//#define VERSION "0.02.18"
#define AUTHOR "Lars Teunissen"
//Maximaal aantal dagen om te grabben
#define MAXDAYS 7
//Maximaal aantal connecties
#define MAXCONN 4
int mconnect;
//Maximaal aantal retries
#define MAXRETRY 3
//Timeout op http-sessie
#define TIMEOUT 30

// Kanaal/Zender definitie
typedef struct {
        char *id;
        char *omschrijving;
        char *icon;
        short provider;  //0 = tvgids, 1 = upclive, 3 = skynet
} channel;

// vertaal char naar char
void chartochar(char *, char, char);

// html characters vertalen, zoals &amp;
void conv_htmlchar();

//converteren & naar html &amp;
//converteren &eacute; naar iso;
//\r wissen
//tags wissen
int conv_char();

// channels vergelijken, 0 is niet gelijk
short compare_channels();

//maken van nieuwe datum van bijv 40 oktober -> 9 november:
//de date_converted wordt vervangen.
//makedate(int jaar, int maand, int dag, int uur, int minuut, char *date_converted, short timezone, time_t timet) 
time_t makedate(int , int , int , int, int, char *, short, time_t) ;

//converteren genre, return(0) als genre ongewijzigd
short convert_genre();
//Maken van array van presentatoren
short maak_presenters(char *data, char **pr);
